﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using StripeOne.Core.Models;

namespace StripeOne.Web.Base.Configuration
{
    public class StripeOneConfig : StripeOneXml
    {
        public StripeOneConfig() : this("default") { }

        public StripeOneConfig(string section) : base("StripeOne", section) { }

        public static StripeOneConfig Default { get { return new StripeOneConfig("default"); } }
        
        public static StripeOneConfig Current
        {
            get
            {
                return new StripeOneConfig(StripeOneInstances.Current.Country);
            }
        }

        public string BaseUrl { get { return base.GetString("baseUrl"); } }
        public string TestDefault { get { return base.GetString("test"); } }
    }
}